package com.wll.okhttpcode.https;

import android.app.Application;
import android.content.Context;

import java.io.IOException;

/**
 * created by detachment on 2020/11/24
 */
public class MyApp extends Application {
    public Context getContext(){
        return this;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        try {
//            OkHttpUtils.getInstance().getmOkHttpClient()
//                    .sslSocketFactory()
//                    .setCertificates(getAssets().open("scra.cer);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
